home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #6 / Amiga Plus CD - 2004 - No. 06.iso / AmigaPlus / Tools / Dev_Libs / Amiblitz2 / Install < prev    next >
Text File  |  2004-05-05  |  3KB  |  82 lines

  1. echo "Adding assigns to *"s:user-startup*" file..."
  2. echo >> s:user-startup "assign >NIL: Blitz2: *"`cd`*""
  3. echo >> s:user-startup "assign >NIL: Blitzlibs: *"`cd`/blitzlibs*""
  4.  
  5. echo "Creating assigns for this session..."
  6. assign >NIL: Blitz2: `cd`
  7. assign >NIL: Blitzlibs: `cd`/blitzlibs
  8.  
  9. echo "Copying default prefs files to ENVARC:..."
  10. copy Prefs/ted.menus ENVARC:
  11. copy Prefs/ted.prefs ENVARC:
  12.  
  13. ask "Would you like to copy the new ped.prefs to ENVARC:? (y/n)"
  14. if warn
  15.   echo "ped.prefs copied"
  16. copy Prefs/ped.prefs ENVARC:
  17. else
  18.   echo "ped.prefs not copied"
  19. endif
  20.  
  21. echo "Copying required system libraries..."
  22. copy libs/ted.library libs:
  23. echo "(ted.library)"
  24. copy libs/lh.library libs:
  25. echo "(lh.library)"
  26.  
  27. if exists libs:wizard.library
  28.   version libs:wizard.library VERSION=42 REVISION=100 >NIL:
  29.   if warn
  30.     echo "Updating wizard.library (old one is renamed to wizard.library_old)"
  31.     if exists libs:wizard.library_old
  32.       delete libs:wizard.library_old
  33.     endif
  34.     rename libs:wizard.library libs:wizard.library_old
  35.     copy libs/wizard.library libs:
  36.   endif
  37. else
  38.   echo "Copying wizard.library to libs:"
  39.   copy libs/wizard.library libs:
  40. endif
  41.  
  42. if exists libs:disassembler.library
  43.   version libs:disassembler.library VERSION=40 REVISION=4 >NIL:
  44.   if warn
  45.     echo "Updating disassembler.library (old one is renamed to disassembler.library_old)"
  46.     if exists libs:disassembler.library_old
  47.       delete libs:disassembler.library_old
  48.     endif
  49.     rename libs:disassembler.library libs:disassembler.library_old
  50.     copy libs/disassembler.library libs:
  51.   endif
  52. else
  53.   echo "Copying disassembler.library to libs:"
  54.   copy libs/disassembler.library libs:
  55. endif
  56.  
  57. echo "Setting script protection bits for online help..."
  58. protect blitz2:redhelp/red_help +s
  59. protect blitz2:redhelp/red_help +e
  60. protect blitz2:redhelp/showexample +s
  61. protect blitz2:redhelp/showexample +e
  62.  
  63. ask "Do you want to use the German versions of AmiBlitz, PED and the online help? (y/n)"
  64. if warn
  65.   echo "German selected"
  66.   rename blitz2:Amiblitz2 blitz2:amiblitz2_eng
  67.   rename blitz2:PED blitz2:ped_eng
  68.   rename blitz2:help.dat blitz2:help_eng.dat
  69.   rename blitz2:RedHelp/RedHelp.dat blitz2:RedHelp/RedHelp_eng.dat
  70.   rename blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs.guide blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs_eng.guide 
  71.  
  72.   rename blitz2:amiblitz2_ger blitz2:Amiblitz2
  73.   rename blitz2:ped_ger blitz2:PED
  74.   rename blitz2:help_ger.dat blitz2:help.dat
  75.   rename blitz2:RedHelp/RedHelp_ger.dat blitz2:RedHelp/RedHelp.dat
  76.   rename blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs_ger.guide blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs.guide
  77. else
  78.   echo "English selected"
  79. endif
  80.  
  81. echo "Blitz is now ready for use. Close this window to finish"
  82.